import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: ()=>import("../views/index.vue"),
      children:[
        {
          path: '/Home',
          component:()=>import("../views/lzx/Home.vue")
        },
        {
          path: '/Accompanying',
          component:()=>import("../views/zjq/Accompanying.vue")
        },
        {
          path: '/Message',
          component:()=>import("../views/lyf/Message.vue")
        },
        {
          path: '/Shopping',
          component:()=>import("../views/zbl/Shopping.vue")
        },
        {
          path: '/My',
          component:()=>import("../views/lxk/My.vue")
        }
      ]
    },
    {
      path:"/zhr",
      component:()=>import("../views/zhr/index.vue")
    }
  ]
})

export default router
